package com.manbu.live.user.provider;

import com.manbu.live.user.dto.UserLoginDTO;
import com.manbu.live.user.dto.UserPhoneDTO;
import com.manbu.live.user.provider.service.IUserPhoneService;
import jakarta.annotation.Resource;
import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;

import java.util.List;

/**
 * @author hanWang
 * @Title:
 * @Package
 * @Description: dubbo 用户中台服务提供者
 * @date 2024/1/87:11 上午
 */
@SpringBootApplication
@EnableDubbo
@EnableDiscoveryClient
public class UserProviderApplication{
    @Resource
    private IUserPhoneService iUserPhoneService;
    public static void main(String[] args) {
        // 传统启动springboot项目方式 args 传参数
       // SpringApplication.run(UserProviderApplication.class,args);
        // 可以设置参数
        SpringApplication springApplication = new SpringApplication(UserProviderApplication.class);
        /**
         * dubbo启动纯是netty的应用进程 用不到tomcat的就是纯粹的spring容器
         */
        springApplication.setWebApplicationType(WebApplicationType.NONE);
        springApplication.run(args);
        System.out.println("==================mb-live-user-provider-starter=================================");
    }

}
